package com.demo.bean;

import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@PropertySource(value = "classpath:person.properties")
//@ConfigurationProperties(prefix = "person")
@Component
public class PersonPropertySource {

    @Override
    public String toString() {
        return "PersonPropertySource{" +
            "name='" + name + '\'' +
            ", abc='" + abc + '\'' +
            '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;

    public String getAbc() {
        return abc;
    }

    public void setAbc(String abc) {
        this.abc = abc;
    }

    private String abc;
}
